package com.ylc.ylcapicommon.service;

/**
 * @Author: ylc
 * @Description:
 */
public interface InnerNonceUtilService {

    /**
     * 将随机序列号存入Redis
     * @param nonce
     * @param path
     */
    void setNonce(String nonce, String path);

    /**
     * 判断redis中是否存在序列号
     * @param nonce
     * @return
     */
    boolean validNonce(String nonce);
}
